<%-- 
    Document   : identitas_user
    Created on : Jan 12, 2014, 9:00:50 PM
    Author     : Muhammad Dony
--%>

<%@include file="../header_user.jsp" %>
        <ul class="nav nav-tabs">
            <li><a href="./identitas">Identitas</a></li>
            <li><a href="./pendidikan">Riwayat Pendidikan</a></li>
            <li><a href="./organisasi">Riwayat Organisasi</a></li>
            <li><a href="./panitia">Riwayat Kepanitian</a></li>
            <li><a href="./prestasi">Prestasi</a></li>
            <li><a href="./keahlian">Keahlian</a></li>
        </ul>
<%@page import="data.IdentitasData"%>
<%@page import="java.util.List"%>
<%
    IdentitasData dataIdentitas = (IdentitasData) request.getAttribute("dataIdentitas");
    String action = (String) request.getAttribute("buttonName");
%>     
        <div class="col-lg-10">
            <div class="row">
                <div class="col-lg-3 col-lg-offset-6 well margin-atas">
                    <form class="form-horizontal col-lg-12 text-center" action="identitas" role="form" method="POST" parsley-validate>
                        <div class="form-group">
                            <h2>Identitas Diri</h2>
                            <div class="controls">
                                <label>ID</label>
                                <input class="form-control" type="text" placeholder="Username" name="ID" parsley-trigger="change" value="<%  out.print(dataIdentitas.getID()); %>" readonly />
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Nama Lengkap</label>
                                <input class="form-control" type="text" name="nama1" placeholder="Nama Lengkap" value="<% out.print(dataIdentitas.getNama1());%>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Nama Panggilan</label>
                                <input class="form-control" type="text" name="nama2" placeholder="Nama Panggilan" value="<% out.print(dataIdentitas.getNama2()); %>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Tempat Lahir</label>
                                <input class="form-control" type="text" name="tempat" placeholder="Tempat Lahir" value="<%  out.print(dataIdentitas.getTempat()); %>">
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="controls">
                                <label>Tanggal</label>
                                <select name="tanggal" id="tanggal" class="form-control">
                                <% for(int t = 1; t<=31; t++){
                                    String a = String.valueOf(t);
                                 %>   
                                 <option value=<%=a%> <% if(a.equals(dataIdentitas.getTanggal())){out.print("selected");} %>> <%=a%> </option>
                                <%}%>
                                </select>
                                <label>Bulan</label>
                                <select name="bulan" id="bulan" class="form-control">  
                                    <option value="Januari" <% if("Januari".equals(dataIdentitas.getBulan())){out.print("selected");} %>> Januari </option>
                                    <option value="Februari" <% if("Februari".equals(dataIdentitas.getBulan())){out.print("selected");} %>> Februari </option>
                                    <option value="Maret" <% if("Maret".equals(dataIdentitas.getBulan())){out.print("selected");} %>> Maret </option>
                                    <option value="April" <% if("April".equals(dataIdentitas.getBulan())){out.print("selected");} %>> April </option>
                                    <option value="Mei" <% if("Mei".equals(dataIdentitas.getBulan())){out.print("selected");} %>> Mei </option>
                                    <option value="Juni" <% if("Juni".equals(dataIdentitas.getBulan())){out.print("selected");} %>> Juni </option>
                                    <option value="Juli" <% if("Juli".equals(dataIdentitas.getBulan())){out.print("selected");} %>> Juli </option>
                                    <option value="Agustus" <% if("Agustus".equals(dataIdentitas.getBulan())){out.print("selected");} %>> Agustus </option>
                                    <option value="September" <% if("September".equals(dataIdentitas.getBulan())){out.print("selected");} %>> September </option>
                                    <option value="Oktober" <% if("Oktober".equals(dataIdentitas.getBulan())){out.print("selected");} %>> Oktober </option>
                                    <option value="November" <% if("November".equals(dataIdentitas.getBulan())){out.print("selected");} %>> November </option>
                                    <option value="Desember" <% if("Desember".equals(dataIdentitas.getBulan())){out.print("selected");} %>> Desember </option>
                                </select>
                                <label>Tahun</label>
                                <select name="tahun" id="tahun" class="form-control">
                                <% for(int t = 1980; t<=2000; t++){
                                    String a = String.valueOf(t);
                                 %>   
                                 <option value=<%=a%> <% if(a.equals(dataIdentitas.getTahun())){out.print("selected");} %>> <%=a%> </option>
                                <%}%>
                                </select>                 
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Alamat Lengkap</label>
                                <input class="form-control" type="textarea" name="alamat" placeholder="Alamat Lengkap" value="<%out.print(dataIdentitas.getAlamat());%>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Nomor Handphone</label>
                                <input class="form-control" type="text" name="hp" placeholder="Nomor HP" value="<%out.print(dataIdentitas.getHp());%>">
                            </div>
                        </div>                            
                        <div class="form-group">
                            <div class="controls">
                                <label>Email</label>
                                <input class="form-control" type="email" name="email" placeholder="Email" value="<%out.print(dataIdentitas.getEmail());%>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Jurusan</label>
                                <input class="form-control" type="text" name="jurusan" placeholder="Jurusan" value="<%out.print(dataIdentitas.getJurusan());%>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Fakultas</label>
                                <input class="form-control" type="text" name="fakultas" placeholder="Fakultas" value="<%out.print(dataIdentitas.getFakultas());%>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Universitas</label>
                                <select name="universitas" id="bulan" class="form-control"> 
                                    <option value="Universitas Sumatera Utara" <% if("Iniversitas Sumatera Utara".equals(dataIdentitas.getUniversitas())){out.print("selected");} %>> Universitas Sumatera Utara </option>
                                    <option value="Universitas Indonesia" <% if("Universitas Indonesia".equals(dataIdentitas.getUniversitas())){out.print("selected");} %>> Universitas Indonesia </option>
                                    <option value="Universitas Padjajaran" <% if("Universitas Padjajaran".equals(dataIdentitas.getUniversitas())){out.print("selected");} %>> Universitas Padjajaran </option>
                                    <option value="Institut Teknologi Bandung" <% if("Institut Teknologi Bandung".equals(dataIdentitas.getUniversitas())){out.print("selected");} %>> Institut Teknologi Bandung </option>
                                    <option value="Universitas Diponegoro" <% if("Universitas Diponegoro".equals(dataIdentitas.getUniversitas())){out.print("selected");} %>> Universitas Diponegoro </option>
                                    <option value="Universitas Gadjah Mada" <% if("Universitas Gadjah Mada".equals(dataIdentitas.getUniversitas())){out.print("selected");} %>> Universitas Gadjah Mada</option>
                                    <option value="Institut Teknologi Sepuluh Nopember" <% if("Institut Teknologi Sepuluh Nopember".equals(dataIdentitas.getUniversitas())){out.print("selected");} %>> Institut Teknologi Sepuluh Nopember </option>
                                    <option value="Universitas Airlangga" <% if("Universitas Airlangga".equals(dataIdentitas.getUniversitas())){out.print("selected");} %>> Universitas Airlangga </option>
                                    <option value="Universitas Brawijaya" <% if("Universitas Brawijaya".equals(dataIdentitas.getUniversitas())){out.print("selected");} %>> Universitas Brawijaya </option> 
                                </select>
                                
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Angkatan</label>
                                <select name="angkatan" id="tahun" class="form-control">
                                <% for(int b = 2006; b<=2020; b++){
                                    String a = String.valueOf(b);
                                 %>   
                                 <option value=<%=a%> <% if(a.equals(dataIdentitas.getAngkatan())){out.print("selected");} %>> <%=a%> </option>
                                <%}%>
                                </select>
                            </div>
                        </div> 
                        <div class="form-group">
                            <div class="controls">
                                <label>Tinggi Badan</label>
                                <select name="tinggi" id="tahun" class="form-control">
                                <% for(int t = 140; t<=180; t++){
                                    String a = String.valueOf(t);
                                 %>   
                                 <option value=<%=a%> <% if(a.equals(dataIdentitas.getTinggi())){out.print("selected");} %>> <%=a%> </option>
                                <%}%>
                                </select>
             
                            </div>
                        </div>                           
                        <div class="form-group">
                            <div class="controls">
                                <label>Berat Badan</label>
                                <select name="berat" id="tahun" class="form-control">
                                <% for(int b = 40; b<=100; b++){
                                    String a = String.valueOf(b);
                                 %>   
                                 <option value=<%=a%> <% if(a.equals(dataIdentitas.getBerat())){out.print("selected");} %>> <%=a%> </option>
                                <%}%>
                                </select>
                            </div>
                        </div> 
                        <div class="form-group">
                            <label>Golongan Darah</label>
                            <select name="darah" id="darah" class="form-control">  
                                    <option value="Tidak Tahu" <% if("Tidak Tahu".equals(dataIdentitas.getDarah())){out.print("selected");} %>> Tidak Tahu </option>
                                    <option value="A" <% if("A".equals(dataIdentitas.getDarah())){out.print("selected");} %>> A </option>
                                    <option value="B" <% if("B".equals(dataIdentitas.getDarah())){out.print("selected");} %>> B </option>
                                    <option value="AB" <% if("AB".equals(dataIdentitas.getDarah())){out.print("selected");} %>> AB </option>
                                    <option value="O" <% if("O".equals(dataIdentitas.getDarah())){out.print("selected");} %>> O </option>
                                    </select>
                        </div> 
                        <div class="form-group">
                            <div class="controls">
                                <label>Motto</label>
                                <input class="form-control" type="textarea" name="motto" placeholder="Motto" value="<%out.print(dataIdentitas.getMotto());%>">
                            </div>
                        </div> 
                        <div class="form-group">
                            <div class="controls">
                                <input type="submit" class="btn btn-primary form-control" name="action" value="<%=action%>" >
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
<%@include file="../footer_user.jsp" %>
